package com.flyweb.test.data;

import java.io.UnsupportedEncodingException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.flyweb.filter.IFilter;

/**
 * <p>
 * Title: flyweb
 * </p>
 * 
 * <p>
 * Description:
 * </p>
 * 
 * <p>
 * CreateTime: 2007-Oct 14, 2007-8:49:12 PM
 * </p>
 * 
 * @author fireflyc@126.com
 */
public class Filter implements IFilter {
	private HttpServletResponse response;
	private HttpServletRequest reuqest;

	/* (non-Javadoc)
	 * @see com.flyweb.test.data.IFilter#getResponse()
	 */
	public HttpServletResponse getResponse() {
		return response;
	}

	/* (non-Javadoc)
	 * @see com.flyweb.test.data.IFilter#setResponse(javax.servlet.http.HttpServletResponse)
	 */
	public void setResponse(HttpServletResponse response) {
		this.response = response;
	}

	/* (non-Javadoc)
	 * @see com.flyweb.test.data.IFilter#getReuqest()
	 */
	public HttpServletRequest getReuqest() {
		return reuqest;
	}

	/* (non-Javadoc)
	 * @see com.flyweb.test.data.IFilter#setReuqest(javax.servlet.http.HttpServletRequest)
	 */
	public void setReuqest(HttpServletRequest reuqest) {
		this.reuqest = reuqest;
	}
	
	public String before() {
		System.out.println("before");
		return "success";
	}

	public String after() {
		System.out.println("after");
		return "success";
	}
}
